package com.jz.learning.demo.DEMO_01.custom_applicationEvent;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

@Component
public class MyApplicationEventListener {
	Log log = LogFactory.getLog(MyApplicationEventListener.class.getName());
	@EventListener(classes = ApplicationEvent.class)
	public void listenAfterAllBeanCreated(ApplicationEvent event){
		log.info("ApplicationEvent Listener execute!");
	}

}
